package com.sx.erp.action;

import com.opensymphony.xwork2.ActionSupport;
import com.sx.erp.domain.User;
import com.sx.erp.service.IUserService;

public class UserAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6672408034455331477L;
	
	private IUserService userService;

	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	private Long id;
	
	public void setId(Long id) {
		this.id = id;
	}
	@Override
	public String execute() throws Exception {
		userService.delete(id);
		return this.SUCCESS;
	}

}
